Skip to content

Evaluate const expression cast at ct if possible #18347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

iluuu1994
Copy link
Member

Related to GH-18264.

Moved over the zend_optimizer_eval_cast() function from the optimizer. Also removed the IS_NULL handling, as it is no longer legal ((unset) $foo).

@iluuu1994 iluuu1994 force-pushed the ct-eval-const-expr-cast branch from d48622f to a82c6f1 Compare April 17, 2025 21:52
Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM

@iluuu1994 iluuu1994 closed this in c97bdce Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants